﻿*, *::before, *::after {
    box-sizing: border-box;
    -moz-box-sizing: border-box;
}

html, body, form.mainform
{
    height: 100%;
}
.wrapper
{
    min-height: 100%;
    margin: 0 auto -86px;
}

body 
{
    padding: 0;
    margin: 0;
    font-size: 1rem;
    background-color: #fff;
    color: #444;
    font-family:"freight-sans-pro",sans-serif;
}

h1
{
    margin:5px 0 20px;
    font-weight:400;
    font-family:"freight-big-pro",sans-serif;
}

h2
{
    margin:0;
    font-size:1.7em;
    padding:5px 0 15px;
    font-family:"freight-big-pro",sans-serif;
    font-weight:400;
}

h3
{
    margin:5px 0;
    font-size:1.3em;
}

p
{
    margin: 10px 0;
    line-height:1.35;
}


/* Hidden */
#accesslinks, .skiplink
{
    display:none;
}
.sr-only
{
    overflow: hidden;
    clip: rect(0,0,0,0);
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
}

/* Links */
a:link, a:visited, a:hover, a:active
{
    color: #b31b1b;
}


/* Css Button */
.cssbutton
{
    background-color: #414141;
    display:inline-block;
    margin: 0 10px 5px 0;
    transition: background-color 0.2s ease;
}
.cssbutton:hover
{
    background-color: #b31b1b;
}
.cssbutton a
{
    display:block;
    padding: 4px 8px;
    color: #fff !important;
    text-decoration: none !important;
    white-space: nowrap;
}
.cssbutton a:focus
{
    outline-offset:2px;
}


/* Font awesome */
.far {
    font-size:18px;
}
.fa-red {
    color:#D00;
}
.fa-blue {
    color:#5f9edf;
}


/* New style validators */
.validatorwarning
{
    display:none;
    margin-top:20px;
}
.validatorinvalid, .validatorwarning
{
    background-color:#FFF8F8;
    border:1px solid #F00 !important;
    border-radius:3px;
    padding:5px !important;
    margin-left:-5px !important;
}
.validator
{
    color:#C00 !important;
    padding-top:5px;
}
.validator:first-child
{
    padding-top:0;
}
.validator::before
{
    content:"\f071";
    font-family:"FontAwesomePro";
    color:#C00;
    padding-right:5px;
}
fieldset.validatorinvalid legend
{
    float:left;
}


/* Pick list control */
.picklistctrl
{
    margin: 0px 0px 0px 0px;
    overflow: auto;
    padding: 0px 0px 0px 0px;
    height: 100px;
    border: 1px solid black;
    background-color: white;
}
.picklistctrl .row
{
    padding: 2px 2px 2px 2px;
}
.picklistctrl .checkbox
{
    float:left;
    width:20px;
}
.picklistctrl input
{
    border:0px;
    background-color: white;
}
.picklistctrl .descr
{
    float:left;
    padding-top:3px;
}
.picklistctrl .value
{
    float:right;
}
.picklistctrl .valuectrl
{
    border:solid 1px black;
    width:60px;
}


/* Maximum width */
.maxwidth
{
    width:100%;
    max-width:1380px;
}


/* Header */
#header
{
    width:100%;
    font-size:0.95rem;
}
#header .headerinner
{
    margin:0 auto;
    overflow:hidden;
}
/* Header cookie consent */
#header #headercookie
{
}
#header #headercookie .headerinner
{
    background-color:#323232;
    padding:0 10px;
}
#header #headercookie #headercookietitle
{
    float:left;
    width:20%;
    margin:10px 0;
    color:#fff;
    background-color:transparent;
    font-size:1.3em;
    font-weight:700;
    padding:5px;
}
#header #headercookie #headercookietext
{
    float:left;
    width:60%;
    margin:10px 0;
    color:#e0e0e0;
}
#header #headercookie #headercookietext a
{
    color:#e0e0e0;
}
#header #headercookie #headercookieclose
{
    float:left;
    width:20%;
    margin:10px 0;
    text-align:right;
}
#header #headercookie #headercookieclose .cssbutton
{
    background-color:#fff;
}
#header #headercookie #headercookieclose .cssbutton a
{
    color:#000 !important;
}
/* Lists within the header */
#header ul
{
    margin:0;
    padding:0;
}
#header ul li
{
    list-style-type: none;
    display:inline-block;
    transition-property: background-color;
    transition-duration: 0.5s;
    transition-timing-function: ease;
}
#header ul li a
{
    display:inline-block;
    text-decoration:none;
    text-transform:uppercase;
}
#header ul li a
{
    outline-offset:-5px;
}
#header .headermoreitemarrow
{
    font-size:0.85em;
}
/* Header top main banner */
#header #headermain
{
}
#header #headermain .headerinner
{
    background-color:#212121;
    min-height:100px;
}
#header #headermain #headerboxlogo {
    float: right;
    margin:24px 12px 12px 0;
}
#header #headermain #headertop
{
    width:calc(100% - 200px);
    display:inline-block;
}

#header #headermain #headertop ul
{
}
#header #headermain #headertop ul li:hover
{
    background-color:#444;
}
#header #headermain #headertop ul li a
{
    padding:7px 10px;
    color:#fff;
}

#header #headermain #headertop #headertoplistmore li a
{
    padding:4px 10px;
}

/* Header main menu */
#header #headermenu
{
    color:#444;
}
#header #headermenu .headerinner
{
    background-color:#b31b1b;
}
#header #headermenulist
{
    height:50px;
}
#header #headermenu ul li
{
    height:50px;
}
#header #headermenu ul li:first-child
{
    border-left:0;
}
#header #headermenu ul li:hover
{
    background-color:#871414;
}
#header #headermenu ul li a
{
    padding:13px;
    font-size:1.1em;
    color:#fff;
}
#header #headermenu ul li.selected
{
    background-color:#871414;
}
#header #headermenu ul li.selected a
{
    color:#fff;
}

/* Header sub menu */
#header #headersubmenu .headerinner
{
    background-color:#b31b1b;
    color:#fff;
}
#header #headersubmenulist
{
    height:30px;
}
#header #headersubmenu ul li
{
    height:50px;
}
#header #headersubmenu ul li:first-child
{
    border-left:0;
}
#header #headersubmenu ul li:hover
{
    background-color:#871414;
}
#header #headersubmenu ul li a
{
    padding:5px 10px;
    font-size:1.1em;
    color:#fff;
}
#header #headersubmenu ul li.selected
{
    background-color:#871414;
}
#header #headersubmenu ul li.selected a
{
    color:#fff;
}

/* Header banner message */
#header #headerbanner
{
    color:#000;
    text-align:center;
}
#header #headerbanner .headerinner
{
    padding:5px 0;
    background-color:#fa8072;
    display:table;
}
#header #headerbanner p
{
    margin:0px;
}
#header #headerbanner p a
{
    color:#000 !important;
}
#header #headerbanner #headerbannertext
{
    display:table-cell;
    vertical-align:top;
}
#header #headerbanner #headerbannerhide
{
    display:table-cell;
    width:150px;
    vertical-align:middle;
}


/* Main area */
#maincontainer
{
    max-width:1100px;
    margin: 0 auto;
    clear:both;
    font-size:1.13rem;
}

/* Main content area */
#maincontent
{
    float:left;
    width:70%;
    padding:10px;
    line-height:180%;
}

/* Widgets - note, the padding is set by the individual widgets, due to the separator line */
#mainwidgets
{
    float:left;
    width:30%;
    padding:0 0 10px 0;
}

/* If full width (i.e. there are no widgets) */
#maincontent.mainfullwidth
{
    width:100%;
}
#mainwidgets.mainfullwidth
{
    display:none;
}

/* Individual widget */
#mainwidgets .mainwidget
{
    width:100%;
    padding:10px 0;
}
#mainwidgets .mainwidgetcontainer
{
    padding:0 10px 1px 10px;
}
#mainwidgets .mainwidgetnoline .mainwidgetcontainer
{
    border-left:0;
}
#mainwidgets .mainwidgetheader
{
    padding:5px;
    font-size: 1.3em;
    font-weight: 700;
    background-color:#b31b1b;
    color:#fff;
}
#mainwidgets .mainwidgetcontent
{
    position:relative;
}
#mainwidgets .mainwidthseparator
{
    border-top:1px dotted #a0a0a0;
    height:1px;
}
#mainwidgets .mainwidgetrightbutton
{
    text-align:right;
}
#mainwidgets .mainwidgetrightbutton .cssbutton
{
    margin-right:0;
}
#mainwidgets .mainwidgetlogo
{
    text-align:center;
}
#mainwidgets .mainwidgetlogo img
{
    width:100%;
}


/* Popup with header */
#headerpopup
{
    width:100%;
    background-color:#fff;
    padding:4px 10px;
}
#headerpopup #headerpopupleft
{
    font-size:2em;
}
#mainpopup
{
    width:100%;
}
#mainpopupcontent
{
    padding:10px;
}
#mainpopup #popupmenuright
{
    float:right;
}



/* Footer */
#footer
{
    font-size:1.13rem;
    height:86px;
    clear:both;
    background-color:#212121;
    padding: 20px 0 40px;
    border-top: 4px solid #b31b1b;    
}
#footer .footerinner
{
    margin: 0 auto;
    text-align:center;
    color:#fff;
    padding:0 0 5px 10px;
}
#footer .footerinner a
{
    color:#fff;
}




/* Red Star */
.redHilite
{
    color: #c00;
}

/* Error */
.errorText
{
    color:#E00;
}


/* Box */
.boxbuttons
{
    margin-top:25px;
}


/* Input controls */
input[type="text"], input[type="password"], textarea, select
{
    font-family:Arial;
    font-size:14px
}


/* General container for main content area controls */
.formattedcontrols
{
    position:relative;
}
/* Limited width so it doesn't go full width on large screens */
.formattedcontrols .limitedwidth
{
    max-width:500px;
    width:100%;
}
.formattedcontrols .fullwidth
{
    width:100%;
}
.formattedcontrols textarea.fullwidth
{
    resize:vertical;
}
.formattedcontrols select
{
    max-width:100%;
}
.formattedcontrols .blockspan
{
    display:inline-block;
    margin-right:10px;
}


/* Info label */
.infolabelerror
{
    padding:0 5px;
    border:1px solid #F00;
    border-radius:3px;
    background-color:#FFF8F8;
}
.infolabelerror p
{
    padding-left:30px;
    min-height: 25px;
    background: url("../../../../images/shared/error2.png") no-repeat;
    color:#a40000;
}
.infolabelinfo
{
    padding:0 5px;
    border:1px solid #00F;
    border-radius:3px;
    background-color:#F8FFF8;
}
.infolabelinfo p
{
    padding-left:30px;
    min-height:25px;
    background: url("../../../../images/shared/info2.png") no-repeat top left;
    color:#204a87;
}


/* Allow for accessibility on radiobuttonlist/checkboxlist */
fieldset.radiobuttonlist, fieldset.checkboxlist
{
    border:0;
    padding:0;
    margin:10px 0;
    line-height:1.35;
}
fieldset.radiobuttonlist legend,
fieldset.checkboxlist legend
{
    width:100%;
    margin:0;
    padding:0;
}


/* Radio list */
.listwithproperwrap input {
    float: left;
    margin-top:10px;
}
.listwithproperwrap label {
    margin-left: 25px;
    display: block;
}
.listwithproperwrap br {
    margin:3px 0px;
    line-height:4px;
    content:" ";
    display:block;
}


/* Content editing links */
.editContentContainer
{
    position:relative;
    min-height:25px;
}
.editContentContainerHighlight
{
    background-color:rgba(255,0,0,0.3);
}
.editContentEdit
{
    position:absolute;
    top:0;
    right:0;
    border:1px dotted #c0c0c0;
    margin-bottom:2px;
}
.editContentEdit img
{
    margin:3px 0 3px 3px;
    display:block;
}



/* Medium - main takes up entire width, widgets takeup 50% */
@media screen and (max-width:799px)
{
    #header #headermain .headerinner
    {
        min-height:80px;
    }
    #header #headermain #headerboxlogo {
        margin:12px 12px 0 0;
    }

    /* Take up entire width */
    #maincontent
    {
        width:100%;
        padding:10px;
    }
    
    /* Take up entire width, but now padding is added */
    #mainwidgets
    {
        width:100%;
        padding:10px;
    }
    
    /* Individual widgets now take up 50% of the room */
    #mainwidgets .mainwidget
    {
        float:left;
        width:50%;
        border-top:1px solid #a0a0a0;
    }
    #mainwidgets .mainwidgetnoline
    {
        border-top:0;
    }

    /* Odd (left side) needs to clear */
    #mainwidgets .mainwidget:nth-child(odd)
    {
        clear:both;
    }
    /* Odd (left side) have just right padding and no border */
    #mainwidgets .mainwidget:nth-child(odd) .mainwidgetcontainer
    {
        padding:0 10px 0 0;
        border-left:0;
        clear:both;
    }
    /* Even (right rise) has just left padding, keeping the border */
    #mainwidgets .mainwidget:nth-child(even) .mainwidgetcontainer
    {
        padding:0 0 0 10px;
    }
    
    #maincontainer
    {    
        min-height:400px;
    }
}

/* Small - main takes up entire width, widgets take up entire width */
/* If changing, update fullCollapse in header.js */
@media screen and (max-width:499px)
{
    .wrapper
    {
        min-height:0;
        margin-bottom:0;
    }

    #header
    {
        padding-top:0;
    }
    
    #header #headercookie #headercookietitle,
    #header #headercookie #headercookietext,
    #header #headercookie #headercookieclose
    {
        float:none;
        width:100%;
        text-align:left;
    }
   
    #header #headermain .headerinner
    {
        position:relative;
        z-index:1;
    }
    #header #headermain #headerboxlogo
    {
        float:none;
        position:absolute;
        top:0;
        right:0;
        z-index:2;
    }
    #header #headermain #headertop
    {
        background-color:transparent;
        width:auto;
        max-width:298px;
        z-index:3;
        position:relative;
    }
    #header #headermain #headertop .headerinner
    {
        padding:0 0 10px 10px;
    }
    #header #headermain #headertop #headertoplistmore li
    {
        display:block !important;
        min-width:200px;
        border:1px solid #fff;
        border-bottom:0;
        background-color:#212121;
    }
    #header #headermain #headertop #headertoplistmore li:hover
    {
        background-color:#444;
    }
    #header #headermain #headertop #headertoplistmore li a
    {
        width:100%;
        color:#fff;
    }

    #header #headermenulistmore li,
    #header #headersubmenulistmore li
    {
        border-top:1px solid #a0a0a0 !important;
        border-left:0 !important;
        display:block !important;
        padding-top:2px;
    }
    #header #headermenulistmore li a,
    #header #headersubmenulistmore li a
    {
        width:100%;
    }
    #header #headermain #headermainname a #headermainnamenormal
    {
        display:none;
    }
    #header #headermain #headermainname a #headermainnamemobile
    {
        display:inline;
    }
    
    #header #headerbanner .headerinner
    {
        display:block;
    }
    #header #headerbanner #headerbannertext
    {
        display:block;
    }
    #header #headerbanner #headerbannerhide
    {
        display:block;
        text-align:right;
        padding-top:5px;
        width:auto;
    }
    
    #mainwidgets .mainwidget
    {
        float:none;
        width:100%;
        border-top:1px solid #a0a0a0;
    }
    #mainwidgets .mainwidgetnoline
    {
        border-top:0;
    }
    /* No padding or borders */
    #mainwidgets .mainwidget .mainwidgetcontainer
    {
        /* Needs "!important" as otherwise the medium instructions override */
        padding:0px !important;
        border-left:0 !important;
    }
    
    #maincontainer
    {    
        min-height:0;
    }

    #footer
    {
        height:auto;
    }    
}



/*Skip to main content link*/
.skipToContent
{
    left:40px;
    top:-70px;
    position:fixed;
    border:2px solid black;
    background:white;
    text-align:center;
    text-decoration:none;
    z-index:100;
}
.skipToContent:focus
{
    top:40px;
    opacity:1;
    outline:1px solid grey;
}
.skipToContent div
{
    padding:10px;
}


/* jquery dialog header used for session timeout dialog */
.ui-widget-header
{
    background-color:#b31b1b !important;
}


fa-red {
    color:#EE0000;
}